<?xml version='1.0' encoding='UTF-8' ?>
<!--
    Document   : centro
    Created on : 14/06/2011, 20:59:58
    Author     : Edmilson
-->

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:icecore="http://www.icefaces.org/icefaces/core"

      xmlns:ice="http://www.icesoft.com/icefaces/component"
      >

              

            <ice:panelGroup style=" width:1000px; min-height: 540px; text-align:left; height:100%; border:solid 0px red ">                
                <!--CONSULTA-->
                <ice:panelCollapsible toggleOnClick="false"  styleClass="iceConsultabl" style="border:solid 0px red"  id="formPanel" expanded="true">
                    <f:facet   name="header">
                        <ice:panelGroup style="color: black">
                            <ice:outputText  id="formHeader" value=""/>
                            <ui:insert name="titulo"/>
                        </ice:panelGroup>
                    </f:facet>
                    <ice:panelGrid columns="2">
                        <ice:panelGrid columns="2" style="width: 920px; text-align:left; font-size: 14px">
                            <ui:insert name="camposConsulta"/> 
                            <ice:commandButton actionListener="#{botoes.controllerPagina.consultaEspecifica}" image="/resources/btConsultar.png" immediate="false" title="Consultar os Registros" />
                        </ice:panelGrid>

                        <ice:panelGrid style="">
                            <ice:commandButton  actionListener="#{botoes.controllerPagina.recarregarTabela}" image="/resources/btRecarregar.png" immediate="true" title="Recarregar a Tabela com todos os Dados" />
                        </ice:panelGrid>
                    </ice:panelGrid>
                    <ice:messages errorClass="errorMessage" fatalClass="fatalMessage" globalOnly="true" id="messages1" infoClass="infoMessage"
                                  showDetail="true" showSummary="true" style="color: red; border:solid 1px red" warnClass="warnMessage"/>

                    <ice:panelGrid   style="border:solid 0px red; height:430px" >
                        <ice:panelGroup  style="text-align: center; width: 965px; overflow: auto; border: solid 0px red; height: 400px" >
                            <ice:dataTable resizable="true"   cellpadding="0" headerClass="icelist-header"  
                                           rowClasses="icelist-row-even,icelist-row-odd" clientOnly="true" style="margin-top:0px; width:100%;"
                                           value="#{botoes.controllerPagina.rowModel}"  >

                                <ice:columns  value="#{botoes.controllerPagina.columnsModel}" var="headings">

                                    <ice:outputText  value="#{botoes.controllerPagina.cellValue}"/>
                                    <f:facet name="header">
                                        <ice:outputText value="#{headings}"/>
                                    </f:facet>
                                </ice:columns>                                
                            </ice:dataTable>



                        </ice:panelGroup>
                        <div style="height: 25px; margin: 0 auto; width:110px; border: solid 0px red  ">
                            <ice:panelGrid columns="4">
                                <ice:commandButton  image="resources/btPrimeira.png" rendered="#{botoes.controllerPagina.paginaAtual != 0}"  title="Primeira Página" action="#{botoes.controllerPagina.primeiraPagina}"/>
                                <ice:commandButton  image="resources/btAnt.png" rendered="#{botoes.controllerPagina.paginaAtual != 0}" style="margin-left: 10px" title="Página Anterior" action="#{botoes.controllerPagina.anterior}"/>
                                <ice:commandButton  image="resources/btProx.png" rendered="#{botoes.controllerPagina.total &gt; botoes.controllerPagina.proximaPagina}" style="margin-left: 10px"  title="Próxima Página"  action="#{botoes.controllerPagina.proxima}"/>
                                <ice:commandButton  image="resources/btUltimo.png" title="Última Página" style="margin-left: 10px" rendered="#{botoes.controllerPagina.total &gt; botoes.controllerPagina.proximaPagina}"  action="#{botoes.controllerPagina.ultimaPagina}"/>
                            </ice:panelGrid>
                        </div>

                    </ice:panelGrid>
                </ice:panelCollapsible>
            </ice:panelGroup>
        

</html>